package com.miet.mp45.filippov.cryptoapplet;

import javax.swing.JApplet;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import org.apache.log4j.Logger;


public class CryptoApplet extends JApplet
{

    private static final long serialVersionUID = 8181880695665088008L;
    
    private Logger logger = Logger.getLogger(this.getClass());
    

    @Override
    public void init()
    {
        try
        {
            SwingUtilities.invokeAndWait(new Runnable()
            {
                @Override
                public void run()
                {
                    try
                    {
                        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                    }
                    catch (Exception e)
                    {
                        logger.error(e);
                    }
                    MainPanel panel = new MainPanel();
                    add(panel);
                }
            });
        }
        catch (Exception e)
        {
            logger.error(e);
        }
    }
}
